<?php
		
    $path = "../../images-products";    
    $arr = split(',',$_POST['file']);
    foreach($arr as $file) 
    {
        unlink($path . "/" . $file) or die("Failed to <strong class='highlight'>delete</strong> file"); 
        unlink($path . "/thumbnail/" . $file) or die("Failed to <strong class='highlight'>delete</strong> file"); 
    }

?>